package com.work.app.bean;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotNull;

import java.io.Serializable;

import java.util.Date;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;

/**
 * 账号表
 * @Date 2024-05-15 14:59:55
 * @author hjj
 */
@Data
@TableName("user")
@ApiModel(value="User对象", description="账号表")
public class User implements Serializable {

    @NotNull(message="[]不能为空")
    @ApiModelProperty("")
    private Integer id;

    @NotBlank(message="[账号]不能为空")
    @Size(max= 32,message="编码长度不能超过32")
    @ApiModelProperty("账号")
    private String username;

    @NotBlank(message="[密码]不能为空")
    @Size(max= 32,message="编码长度不能超过32")
    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("状态(1为正常)")
    private Integer state;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @NotNull(message="[6位安全码]不能为空")
    @ApiModelProperty("6位安全码")
    private Integer code;

}
